home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
grafd211.zip
/
GRAF-D.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-05-27
|
5KB
|
244 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Boolean BOOLEAN002
Boolean BOOLEAN003
Boolean BOOLEAN004
Integer INTEGER001
Integer INTEGER002
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
;------------------------------------------------------------------------------
STRING003 = ""
STRING007 = Chr(8) + Chr(32) + Chr(8)
INTEGER002 = 50
STRING008 = Chr(27)
STRING009 = Chr(13) + Chr(10)
STRING003 = GetToken()
While (STRING003 <> "") Do
Select Case (Mid(Upper(STRING003), 2, 1))
Case "W"
INTEGER002 = Mid(STRING003, InStr(STRING003, ":") + 1, 2)
If ((INTEGER002 < 1) || (INTEGER002 == "")) INTEGER002 = 50
Case "C"
BOOLEAN004 = 1
Case "A"
STRING015 = 1
End Select
STRING003 = GetToken()
EndWhile
STRING003 = ""
PrintLn "Testing your system capability..."
If (OnLocal()) Then
BOOLEAN001 = 1
Else
Print STRING008 + "[!"
Print STRING007 + STRING007 + STRING007
Print STRING008 + " F"
Print STRING007 + STRING007 + STRING007
Print STRING008 + "[6n"
Print STRING007 + STRING007 + STRING007 + STRING007
STRING003 = Chr(MGetByte())
While ((STRING003 == "") && (INTEGER001 <= INTEGER002)) Do
STRING003 = Chr(MGetByte())
If (STRING003 <> "") Then
BOOLEAN003 = 1
Continue
Endif
Delay 2
INTEGER001 = INTEGER001 + 2
EndWhile
Select Case (STRING003)
Case "R"
While ((STRING003 <> "") || (Len(STRING005) < 9)) Do
STRING005 = STRING005 + STRING003
STRING003 = Chr(MGetByte())
If (STRING003 == "") Then
Delay 2
STRING003 = Chr(MGetByte())
Endif
EndWhile
If (Left(STRING005, 3) == "RIP") Then
BOOLEAN002 = 1
BOOLEAN001 = 1
Endif
Case STRING008
While (STRING003 <> "") Do
STRING005 = STRING005 + STRING003
STRING003 = Chr(MGetByte())
If (STRING003 == "") Then
Delay 2
STRING003 = Chr(MGetByte())
Endif
EndWhile
Tokenize STRING005
STRING003 = GetToken()
STRING003 = Mid(STRING003, 2, Len(STRING003 - 1))
If (((STRING003 >= 0) || (STRING003 <= 80)) && (Right(GetToken(), 1) == "R")) Then
BOOLEAN001 = 1
Goto LABEL001
Endif
BOOLEAN001 = 0
Endif
End Select
:LABEL001
STRING002 = "Do you want graphics (Enter)="
STRING004 = ReadLine(PCBDat(), 257)
If (STRING004) Then
STRING006 = ReadLine(PCBDat(), 179)
SPrintLn
SPrintLn "┌───────────────────────────────────────────────────────────────────┐"
SPrintLn "│ Your system is improperly configured for use with the GRAF-D.PPE │"
SPrintLn "│ file. You have configured it to default to Yes for the 'Do you │"
SPrintLn "│ want graphics' prompt. You need to change that setting to 'N' in │"
SPrintLn "│ PCBSetup | Configuration Options | Configuration Switches. │"
SPrintLn "└───────────────────────────────────────────────────────────────────┘"
SPrintLn
Print "Do you want graphics (Enter)=no"
End
Endif
If (BOOLEAN001) Then
If (BOOLEAN002) Then
If (BOOLEAN004) Then
PrintLn STRING009 + STRING008 + "[45;30m▓▒░" + STRING008 + "[37;1m RIPscrip detected and it will be the default " + STRING008 + "[0m" + STRING008 + "[45;30m ░▒▓" + STRING008 + "[0m"
Else
STRING002 = STRING002 + "RIPscrip"
Endif
ElseIf (BOOLEAN004) Then
PrintLn STRING009 + STRING008 + "[45;30m▓▒░" + STRING008 + "[37;1m ANSI detected and it will be the default " + STRING008 + "[0m" + STRING008 + "[45;30m ░▒▓" + STRING008 + "[0m"
Else
STRING002 = STRING002 + "yes"
Endif
If (BOOLEAN004) STRING002 = STRING002 + "default"
Else
If (BOOLEAN004) Then
PrintLn STRING009 + "[* No graphics capabilities detected. This will be the default *]"
STRING002 = STRING002 + "default"
Else
STRING002 = STRING002 + "no"
Endif
Endif
If ((STRING015 && !BOOLEAN001) || !STRING015) Then
InputStr STRING002, STRING001, 7, 6, "QSR", 2 + 128 + 256 + 16 + 8 + 16384
If ((STRING001 == "") && !BOOLEAN001) STRING001 = NoChar()
If (InStr(STRING001, "NS")) Then
STRING010 = "NS"
STRING001 = Left(STRING001, InStr(STRING001, "NS") - 1) + Right(STRING001, Len(STRING001) - InStr(STRING001, "NS") + 1)
Endif
If (InStr(STRING001, YesChar())) STRING012 = YesChar() + ";"
If (InStr(STRING001, NoChar())) STRING014 = NoChar() + ";"
If (InStr(STRING001, "Q")) STRING011 = "Q;"
If (InStr(STRING001, "R")) STRING013 = "R;"
Endif
If ((BOOLEAN002 && (STRING014 == "")) && (STRING012 == "")) Then
STRING013 = "R;"
ElseIf ((BOOLEAN001 && (STRING014 == "")) && (STRING013 == "")) Then
STRING012 = YesChar() + ";"
Endif
If ((STRING013 <> "") && (STRING012 <> "")) STRING013 = ""
If ((STRING013 <> "") && (STRING014 <> "")) STRING013 = ""
If ((STRING012 <> "") && (STRING014 <> "")) STRING012 = ""
KbdStuff STRING013 + STRING012 + STRING014 + STRING011 + STRING010
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 41 Goto
; 49 Let
; 7 Print
; 4 PrintLn
; 35 If
; 1 InputStr
; 3 Delay
; 1 Tokenize
; 1 KbdStuff
; 8 SPrintLn
;
;
; ■ Functions used :
;
; 57 +
; 3 -
; 16 ==
; 10 <>
; 2 <
; 2 <=
; 1 >=
; 28 !
; 11 &&
; 4 ||
; 3 Len(
; 3 Upper()
; 5 Mid()
; 2 Left()
; 2 Right()
; 12 Chr()
; 8 InStr()
; 3 NoChar()
; 3 YesChar()
; 2 PCBDat()
; 2 ReadLine()
; 1 OnLocal()
; 4 GetToken()
; 6 MGetByte()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 4 While/EndWhile
; 16 If/Then or If/Then/Else
; 2 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------